package com.lagou.edu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description TODO
 * @Classname IUserClient
 * @Date 2021/5/30 19:59
 * @Author ch'ien
 */
@FeignClient(value = "lagou-service-user",fallback = IUserClientFallback.class,path = "/user")
public interface IUserClient {

    @GetMapping("/info/{token}")
    public String info(@PathVariable String token);
}
